package com.ljt.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ljt.utils.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_product")
@ApiModel(value="Product对象", description="物资表")
public class Product {
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "编号")
    private Long id;
    @ApiModelProperty(value = "物资ID")
    @Excel(name = "物资ID")
    private String pNum;
    @ApiModelProperty(value = "物资名称")
    @Excel(name = "物资名称")
    private String name;
    @ApiModelProperty(value = "图片")
    @Excel(name = "图片")
    private String imageUrl;
    @ApiModelProperty(value = "规格型号")
    @Excel(name = "规格型号")
    private String model;
    @ApiModelProperty(value = "计算单位")
    @Excel(name = "计算单位")
    private String unit;
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Long sort;
    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "修改时间")
    @Excel(name = "修改时间")
    private Date modifiedTime;

    @ApiModelProperty(value = "一级分类")
    @Excel(name = "一级分类")
    private Long oneCategoryId;

    @ApiModelProperty(value = "一级分类")
    @Excel(name = "一级分类")
    @TableField(exist = false)
    private String oneCategoryName;

    @ApiModelProperty(value = "二级分类")
    @Excel(name = "二级分类")
    private Long twoCategoryId;

    @ApiModelProperty(value = "二级分类")
    @Excel(name = "二级分类")
    @TableField(exist = false)
    private String twoCategoryName;

    @ApiModelProperty(value = "三级分类")
    @Excel(name = "三级分类")
    private Long threeCategoryId;

    @ApiModelProperty(value = "三级分类")
    @Excel(name = "三级分类")
    @TableField(exist = false)
    private String threeCategoryName;

    @ApiModelProperty(value = "物资状态:1物资正常,0:物资回收,2:物资审核中")
    @Excel(name = "物资状态:1物资正常,0:物资回收,2:物资审核中")
    private int status;

    @TableField(exist = false)
    @ApiModelProperty(value = "申请数量")
    @Excel(name = "申请数量")
    private int applyNum;
}
